<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<definitions id="_7f0c94c0-2a22-445d-b4b7-4fd181e08248"
                  xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xmlns:camunda="http://camunda.org/schema/1.0/cmmn"
                  targetNamespace="Examples">
  <case id="case">

    <casePlanModel id="CasePlanModel_1">

      <planItem id="PI_Stage_1" definitionRef="Stage_1" />

      <humanTask id="HumanTask_1">
        <extensionElements>
          <camunda:caseExecutionListener event="start">
            <camunda:script scriptFormat="groovy">
              caseExecution.setVariable("manualActivation", true)
            </camunda:script>
          </camunda:caseExecutionListener>    
        </extensionElements>
      </humanTask>

      <stage id="Stage_1" autoComplete="true">
        <planItem id="PI_HumanTask_1" definitionRef="HumanTask_1">

          <itemControl>
            <repetitionRule>
              <condition>${true}</condition>
            </repetitionRule>
            <manualActivationRule>
              <condition>${manualActivation}</condition>
            </manualActivationRule>
          </itemControl>
        </planItem>

      </stage>

    </casePlanModel>
  </case>

</definitions>
